import useRequest from '@/utils/request'

const request = useRequest({})
//优惠券订单列表
export function getCouponsOrder(params: any) {
  return request.get(`/cj-stadium/sys/couponOrder/page`, {
    params,
  })
}
//优惠券订单状态数量统计
export function getCouponsOrderCount(params: any) {
  return request.get(`/cj-stadium/sys/couponOrder/count`, {
    params,
  })
}
//优惠券订单详情
export function getCouponsOrderDetail(id: any) {
  return request.get(`/cj-stadium/sys/couponOrder/detail`, {
    params: { id },
  })
}
//微信支付-sys发起优惠券退款
export function couponsRefund(data: any) {
  return request.post(`/cj-pay/wx/pay/sys/couponRefund`, data)
}
